package com.chenfan.magic.controller;

import com.chenfan.magic.service.impl.LogService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author liuming
 * @date 2021-11-04 14:31
 */
@RestController
@Slf4j
@RequestMapping("/idc-atom-magic")
@Api(value = "记录日志", tags = "记录日志")
public class LogController {

    @Autowired
    private LogService logService;

    /**
     * 记录日志
     *
     * @return
     */
    @RequestMapping(value = "/saveLog", method = RequestMethod.GET)
    public void saveLog(@RequestParam("url") String url) {
        logService.saveLog(url);
    }
}
